﻿@{
    ViewBag.Title = "Register Success";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>@ViewBag.message</h2>
<div id="time" name="time"></div>
<script type="text/javascript">
    $(function myFunction() {
        var a = 0;
        setInterval(function () {
            if (a < 5) {
                a = a + 1;
                $("#time").html(a);
            }
            else {
                reset();
            }

        }, 1000);
    });

function reset() {
    var url = '/Home/Index';
    document.location.href = url;
};
</script>